home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Views / ViewCell / ViewCell.h < prev   
Text File  |  2000-06-23  |  1KB  |  48 lines

  1. // ViewCell.h
  2.  
  3. #ifndef ViewCell_h
  4. #define ViewCell_h
  5.  
  6. #ifndef View_h
  7. #include "View.h"
  8. #endif
  9.  
  10. class MouseDownEvent;
  11. class MouseEvent;
  12. class RegionObject;
  13. class CursorObject;
  14.  
  15. /*
  16.     This is the interface by which the screen/mouse user interface
  17.     talks to the content of the program.  Only rather inert things
  18.     can get by with this interface -- anything that needs to talk
  19.     back to the screen should inherit from DrawsSpontaneously.
  20. */
  21.  
  22. class ViewCell: virtual public View
  23.   {
  24.     protected:
  25.         ~ViewCell()                {}
  26.         
  27.     public:
  28.         virtual void Deliver( CellVisitor&, const Canvas& );
  29.             // End of the line -- deliver to myself!
  30.         
  31.         virtual void Draw( const Canvas& ) const = 0;
  32.  
  33.         virtual void Click( const Canvas&,
  34.                                   const MouseDownEvent& );
  35.         
  36.         virtual void ActivatingClick( const Canvas&,
  37.                                                 const MouseDownEvent& );
  38.  
  39.         virtual const CursorObject& Cursor( const Canvas&,
  40.                                                         const MouseEvent&,
  41.                                                         RegionObject& ) const;
  42.         
  43.         static ViewCell& Blank();
  44.         static ViewCell& Black();
  45.   };
  46.  
  47. #endif
  48.